package com.jprocms.module.cms.dal.mysql.guestbook;

import com.jpro.framework.mybatis.core.mapper.BaseMapperX;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.jprocms.module.cms.controller.admin.guestbook.vo.GuestbookPageReqVO;
import com.jprocms.module.cms.controller.admin.guestbook.vo.GuestbookQueryListReqVO;
import com.jprocms.module.cms.dal.dataobject.guestbook.GuestbookDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * 留言板 Mapper
 *
 * @author jprocms
 */
@Mapper
public interface GuestbookMapper extends BaseMapperX<GuestbookDO> {
    @Override
    GuestbookDO selectById(Serializable id);

    IPage<GuestbookDO> selectPage(@Param("params") GuestbookPageReqVO params, @Param("orders") Collection<OrderItem> orders, IPage<GuestbookDO> page);

    List<GuestbookDO> selectList(@Param("params") GuestbookQueryListReqVO params, @Param("orders") Collection<OrderItem> orders);


}
